package ua.kpi.ustymenko;
import ua.kpi.ustymenko.testcase.Answers;
import ua.kpi.ustymenko.testcase.question.Question;

public class TestStats {
    private User user;
    private double score;

    public TestStats(User user) {
        this.user = user;
        score = 0;
    }

    public void updateStats(Question question, Answers userAnswers) {
        this.score += question.getAnswersScore(userAnswers);
    }

    public double getScore() {
        return score;
    }

    public User getUser() {
        return user;
    }
}
